﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageUsers.aspx.cs" Inherits="Main_Administration_ManageUser" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
</head>
<body>--%>
    <form id="form1" runat="server">
    <div id="divUserManagement">
        <table border="0" cellpadding="0" cellpadding="0" style="width:100%;">
            <tr align="center">
                <td>
                    <asp:DataGrid ID="dgUsers" runat="server" AutoGenerateColumns="false" 
                        onitemdatabound="dgUsers_ItemDataBound" style="text-align:center" 
                        Width="98%">
                        <HeaderStyle  BackColor="steelblue"  ForeColor="White"/>
                        
                        
                        <Columns>
                            <asp:BoundColumn DataField="userName" SortExpression="userName" HeaderText="User Name"></asp:BoundColumn>
                            <asp:BoundColumn DataField="userRealName" SortExpression="userRealName" HeaderText="Name"></asp:BoundColumn>
                            <asp:BoundColumn DataField="userEmailAddress" SortExpression="userEmailAddress" HeaderText="Email Address"></asp:BoundColumn>
                            <asp:BoundColumn DataField="department" SortExpression="department" HeaderText="Department"></asp:BoundColumn>
                            <asp:BoundColumn DataField="userAddress" SortExpression="userAddress" HeaderText="Address"></asp:BoundColumn>
                            <asp:BoundColumn DataField="userContactNumber" SortExpression="userContactNumber" HeaderText="Contact Number"></asp:BoundColumn>
                            <asp:BoundColumn DataField="userType" SortExpression="userType" HeaderText="User Type"></asp:BoundColumn>
                            <asp:TemplateColumn>
                                <ItemStyle BackColor="#FFFAF0" />
                                <ItemTemplate>
                                    <asp:Label ID="lblEdit" runat="server" Text="Edit" style="cursor:pointer"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn>
                                <ItemStyle BackColor="#FFFAF0" />
                                <ItemTemplate>
                                    <asp:Label ID="lblDelete" runat="server" Text="Delete" style="cursor:pointer"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                    </asp:DataGrid>            
                </td>
            </tr>
        </table>
    </div>
    
    <div id="editPopup" style="position:absolute; display:none">
        <table border="0" 
            style="border:2px solid black;font-size:100%; height: 300px; width: 300px; background-color:#ffffff">
            <tr>
                <td align="center" colspan="2" 
                    style="color:White;background-color:steelblue;font-weight:bold;">
                    Edit User Detaills</td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblUserName" runat="server" AssociatedControlID="txtUserName">User Name:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmail" runat="server" AssociatedControlID="txtEmail">E-mail:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>&nbsp;<span style="color:Red">*</span>
                </td>
            </tr>            
            <tr>
                <td align="right">
                    <asp:Label ID="lblName" runat="server" AssociatedControlID="txtName">Name:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>&nbsp;<span style="color:Red">*</span>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblAddress" runat="server" AssociatedControlID="txtAddress">Address:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPrimaryContactNumber" runat="server" 
                        AssociatedControlID="txtPrimaryContactNumber">Primary Contact Number:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtPrimaryContactNumber" runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblDepartment" runat="server" AssociatedControlID="txtDepartment">Department:</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDepartment" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblUserType" runat="server" AssociatedControlID="ddlType">User Type:</asp:Label>
                </td>
                <td>
                    <asp:DropDownList id="ddlType" runat="server" width="130px"> 
                    </asp:DropDownList>&nbsp;<span style="color:Red">*</span>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="color:Red;">
                    <asp:Label ID="lblErrorMessage" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <input type="button" id="btnSaveChanges" value="Save Changes" onclick="javascript:UpdateUserInfo();"/>
                    <input type="button" id="btnCancelSave"  value="Cancel" onclick="javascript:CancelSave();" />
                </td>
            </tr>
        </table>
    </div>
    </form>
<%--</body>
</html>
--%>